<template>
	<view>
		<web-view :src="link"></web-view>
	</view>
</template>
<script>
	var wv; //计划创建的webview
	export default {
		data() {
			return {
				link: '',
			}
		},
		onLoad(option) {
			this.link = decodeURIComponent(option.link)
		},
		onReady() {
			// #ifdef APP-PLUS
			var currentWebview = this.$scope
				.$getAppWebview()
			setTimeout(function() {
				wv = currentWebview.children()[0]
			}, 1000);
			// #endif

		}
	};
</script>